<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加店铺</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../style/index.css">
    <style>
        .el-descriptions-item__label {
            width: 100px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak class="minWidth">
        <yl-page-header content="添加门店"></yl-page-header>
        <el-form :model="form" :rules="rules" ref="contract" inline-message="true" style="width: 100%">
            <div class="table_titel">
                <div class="titel">添加门店</div>
            </div>
            <el-descriptions :column="2" border size="small">
                <el-descriptions-item label="店铺名称">
                    <el-form-item prop="Store_Name">
                        <el-input v-model.trim="form.Store_Name" placeholder="请选择适用店铺"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="店铺类别">
                    <el-form-item prop="Store_Type">
                        <el-radio-group v-model="form.Store_Type">
                            <el-radio label="0">实体店</el-radio>
                            <el-radio label="1">网店</el-radio>
                          </el-radio-group>
                    </el-form-item>
                </el-descriptions-item>
                <template v-if="form.Store_Type=='0'">
                    <el-descriptions-item label="门店地址">
                        <el-form-item prop="value">
                            <el-cascader v-model.trim="value" filterable :props="{value:'label'}" :options="city" style="width: 100%"></el-cascader>
                        </el-form-item>
                    </el-descriptions-item>
                    <el-descriptions-item label="门店地址">
                        <el-form-item prop="address">
                            <el-input :disabled="value.length < 3" v-model.trim="form.address"  placeholder="请输入详细地址">
                        </el-form-item>
                    </el-descriptions-item>
                </template>
            </el-descriptions>
            <div style="height: 90px;"></div>
            <el-form-item class="form-operation">
                <el-button @click="window.history.back()">返回</el-button>
                <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../utils/vuex.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../config/config.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="js/add.js"></script>
</body>

</html>